package com.programmingeyeclient.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.programmingeyeclient.user.entity.EduStudent;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EduStudentMapper extends BaseMapper<EduStudent> {

    /**
     * 登录--根据手机号
     * @return
     */
    public EduStudent findByUserName(@Param("mobile") String mobile);

    /**
     * 注册--手机号、密码
     * @param eduStudent
     * @return
     */
    public int enroll(EduStudent eduStudent);

    /**
     * 修改
     * @param id
     * @return
     */
    Integer getUpdate(EduStudent eduStudent);

    /**
     * 根据id查询信息
     * @param id 用户id
     * @return EduStudent
     */
    EduStudent getStudentid(Integer id);



}
